package com.bawei.model_sevent.Activity.MVP;

/**
 * 时间：2021/11/10 14:51.
 * 类名：Persenter
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public class Persenter<M extends M_Model,V extends V_View> implements P_Presenter{
    protected M model;
    protected V view;

    public Persenter(M model, V view) {
        this.model = model;
        this.view = view;
    }

    @Override
    public void DesTroy() {
        if (model!=null)
        {
            model.DesTroy();
            model=null;
        }
        if (view!=null)
        {
            view=null;
        }
    }
}
